//
//  smuNodeReader.hpp
//  smu_test1
//
//  Created by jiayi on 16/9/25.
//
//

#ifndef smuNodeReader_hpp
#define smuNodeReader_hpp

// Singleton class for loading .txt file
class smuNodeReader
{
    // defines
public:
    // resources define
    typedef vector< string > smuReaderData;
    typedef smuReaderData::iterator smuReaderDataIter;
    typedef smuReaderData::const_iterator smuReaderDataConstIter;
    
public:
    smuNodeReader(){}
    ~smuNodeReader(){ _readerData.clear(); }
    
    // load file
    int loadResourceFile( const char* filename );
    
    // save file
    int saveResourceFile( const char* filename );
    
    // get result
    const smuReaderData& getReaderData() const { return _readerData; }
    smuReaderData& getReaderData() { return _readerData; }
    
private:
    // resources
    smuReaderData _readerData;
};

#endif /* smuNodeReader_hpp */
